
<title>CNC6</title>

<div class="layui-card layadmin-header">
    <div class="layui-breadcrumb" lay-filter="breadcrumb">
        <a lay-href="">主页</a>
        <a><cite>CNC查询</cite></a>
        <a><cite>CNC6</cite></a>
    </div>
</div>


<div id="cnc-cnc6-app" class="layui-fluid" v-cloak>

    <div class="layui-inline">
        
        <input id="txt_keyword" type="text" class="layui-input layui-input-inline" placeholder="产品码/治具码/机台码" style="width:300px;height:32px;" v-model="SearchModel.keyword">
        <button id="btn_search" type="button" class="layui-btn layui-btn-sm" v-on:click="Search"><i class="fa fa-search"></i></button>
    </div>


    <table class="table table-hover layui-table">
        <thead>
            <tr>
                <th style="width:20px;"></th>
                <th>产品码</th>
                <th>治具码</th>
                <th>机台码</th>
                <th>线别码</th>
                <th>开始时间</th>
                <th>结束时间</th> 
            </tr>
        </thead>
        <tbody>
            <tr v-for="(item,index) in Models" :class="{'selected':SelectedModel == item}" v-on:click="SelectRow(item)">
                <td>{{ GetOrdinal(index) }}</td>
                <td>{{ item.Prod_Code }}</td>
                <td>{{ item.Tool_Code }}</td>
                <td>{{ item.Machine_Code }}</td>
                <td>{{ item.Prod_Line }}</td>
                <td>{{ item.Start_Time|yyyy_mm_dd_hh_mm_ss }}</td>
                <td>{{ item.End_Time|yyyy_mm_dd_hh_mm_ss }}</td>
                <!--<td>
                    <switchbutton v-bind:value="item.IsEnabled" v-bind:text="item.IsEnabled?'启用':'禁用'"></switchbutton>
                </td>-->
            </tr>
        </tbody>
        <tfoot is="ling-footer" v-bind:options="PageOptions" v-on:change="ToPage"> </tfoot>
    </table> 
</div>



<script>

    layui.use(['admin', 'laypage', 'table', 'form', 'ling'], function () {
        var $ = layui.$;
        var table = layui.table;
        var laypage = layui.laypage;
        var form = layui.form;
        var dialogIndex;
        var ling = layui.ling;
        var app = $('#cnc-cnc6-app').Grid({
            SearchUrl: "/CNC/Transfer/GetModels?type=cnc6" 
        }); 
    });
</script>
